package cn.ims.bh.module.demo.controller.admin;

import cn.ims.bh.framework.common.pojo.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

import static cn.ims.bh.framework.common.pojo.CommonResult.success;

/**
 * @Author:WQ
 * @Date:2022-04-12-21:33
 * @Description:
 */
@Api(tags = "管理后台 - Test") //在接口文档中显示
@RestController
@RequestMapping("/demo/test")
@Validated
public class DemoTestController {

    @GetMapping("/get")
    @ApiOperation("获取get 信息") //在接口文档中显示
    public CommonResult<String> get(){
        HashMap<String,Integer> map = new HashMap<>();
        map.put("demotest",1);
        return success(map.toString());
    }
}
